all: main

main: main.o fibonacciHeap.o graph.o
	g++ main.o fibonacciHeap.o graph.o -o dijkstra 

main.o: main.cpp
	g++ -c main.cpp

fibonacciHeap.o: fibonacciHeap.cpp fibonacciHeap.h
	g++ -c fibonacciHeap.cpp fibonacciHeap.h

graph.o: graph.cpp graph.h
	g++ -c graph.cpp graph.h

#test: dijkstra

#dijkstra: dijkstra.o fibonacciHeap.o graph.o
#	g++ dijkstra.o fibonacciHeap.o graph.o -o dijkstra

#dijkstra.o: dijkstra.cpp
#	g++ -c dijkstra.cpp

heapTest.o: heapTest.cpp
	g++ -c heapTest.cpp

heapTest: heapTest.o fibonacciHeap.o
	g++ fibonacciHeap.o heapTest.o -o heapTest
	
clean:
	rm *.o *.gch main dijkstra heapTest
